package cn.ibizlab.odoo.core.odoo_mro.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_mro.domain.Mro_pm_replan;
import cn.ibizlab.odoo.core.odoo_mro.filter.Mro_pm_replanSearchContext;

/**
 * 实体[Mro_pm_replan] 服务对象接口
 */

public interface IMro_pm_replanService{
     boolean create(Mro_pm_replan mro_pm_replan) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean remove(Integer id) ;
     void createBatch(List<Mro_pm_replan> mro_pm_replans, int batchSize) ;
     boolean update(Mro_pm_replan mro_pm_replan) ;
     void updateBatch(List<Mro_pm_replan> mro_pm_replans, int batchSize) ;
     Mro_pm_replan get(Integer id) ;
     Mro_pm_replan get(Mro_pm_replan mro_pm_replan) ;

    /**
     * 查询集合 默认查询
     */
    Page<Mro_pm_replan> searchDefault(Mro_pm_replanSearchContext context) ;

    /**
     * 根据用户查询
     */
     Page<Mro_pm_replan> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Mro_pm_replan> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Mro_pm_replan convert2Domain(cn.ibizlab.odoo.core.client.model.Imro_pm_replan model ,Mro_pm_replan domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Imro_pm_replan convert2Model(Mro_pm_replan domain , cn.ibizlab.odoo.core.client.model.Imro_pm_replan model);

}
